package models.venue.coach;

import models.BaseModel;
import models.venue.enums.CoachStatus;

import javax.persistence.*;
import java.util.Date;

/**
 * 教练日程
 * Created by hanbin on 17/4/5.
 */
@Entity
@Table(name="coach_schedules")
public class CoachSchedule  extends BaseModel {

    /**
     * 教练id
     */
    @JoinColumn(name="coach_id")
    @ManyToOne
    public Coach coach;

    /**
     * 日期
     */
    @Column(name="coach_date")
    public Date coachDate;

    /**
     * 状态
     */
    @Enumerated(EnumType.STRING)
    @Column(name = "status", length = 255)
    public CoachStatus coachStatus;

}
